package com.qf.controller;

import com.qf.entity.Demo;
import com.qf.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author li
 * @Date 2024/12/22 22:04
 * @Version 1.0
 */
@RestController
@Slf4j
@RequestMapping("demo")
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("test1")
    public Object list(){
        List<Demo> demoList = demoService.demoList();
        log.info("《后台管理业务日志》");
        return demoList;
    }
}
